package Exam.service;

import Exam.dao.PhoneAddressDao;
import Exam.domain.PhoneAddress;
import Exam.impl.PhoneAddressImpl;
import Person.Lambda.Abbable;

import java.util.ArrayList;

public class PhoneAddressService {
    PhoneAddressDao pad  = new PhoneAddressImpl();
public boolean addphone(PhoneAddress p){
    return pad.addphone(p);
}
public boolean deletephone(String name){
    return pad.deletephone(name);
}
public ArrayList<PhoneAddress> selectAll(){
    return pad.selectAll();
}
public PhoneAddress selectOneByname(String name){
    return pad.selectOneByname(name);
}
public boolean updatephone(PhoneAddress p){
    return pad.updatephone(p);
}
}
